/* 
* @Author: obsidian
* @Date:   2015-12-15 19:55:53
* @Last Modified by:   obsidian
* @Last Modified time: 2016-01-30 08:39:47
*/

#ifndef STOPSTEER_H
#include "../def.h"
#include "stm32f10x_tim.h"

struct Stopsteer
{
    unsigned short          *CCRx;
    unsigned short          midvalue0;
	unsigned short          midvalue1;
    short                   limit[2];
	unsigned char 			stop_flag;
    void                    (*init)(unsigned short);
    void                    (*control)();
};

extern unsigned char stop_flag;
extern struct Stopsteer stopsteer;
 void nowtime_init(void);

#define STOPSTEER_H
#endif
